function y=TG(y,t,p)
% aplica transformarea Gauss
% unui vector oarecare y
	y = y(:);	%ne asiguram ca sunt vectori coloana
	t = t(:);	
	n = length(t);
	y( p+1:n ) = y( p+1:n ) - t( p+1:n ) .* y( p );

endfunction
